<script setup>
import ActivityNoteList from "@/views/contract/common/activityNote/activityNoteList.vue";
import {pageofficeOpenFile} from "@/plugins/pageoffice/pageoffice-common.js";
import {backProcessConList} from "@/utils/backList.js";

const prop = defineProps({
  conId: {
    type: Number
  },
  isRefreshActivityNote: {
    type: Boolean,
  }
})
const isCanAddActivityNote = ref(true)

function openFile() {
  pageofficeOpenFile('/contract/processed/openFile/' + prop.conId, prop.conId)
}
</script>

<template>
  <el-row>
    <el-col :span="12" class="left">
      <el-row>
        <el-form-item>
          <el-button @click="backProcessConList">返 回</el-button>
          <el-button type="primary" @click="openFile">打开正文</el-button>
        </el-form-item>
      </el-row>
    </el-col>
  </el-row>
  <!-- 流程信息列表 -->
  <ActivityNoteList :isRefreshActivityNote="isRefreshActivityNote" :isCanAddActivityNote="isCanAddActivityNote"/>
</template>

